package cn.maihe.elg.operation.repository.entity;

import cn.maihe.framework.starter.mybatis.mapper.Fn;
import cn.maihe.framework.starter.mybatis.mapper.PlusEntityWrapper;

public final class AcceptContentCondition {
    private PlusEntityWrapper<AcceptContent> ew;

    public AcceptContentCondition() {
        this.ew = new PlusEntityWrapper(AcceptContent.class);
    }

    public static AcceptContentCondition builder() {
        return new AcceptContentCondition();
    }

    public PlusEntityWrapper<AcceptContent> build() {
        return this.ew;
    }

    public AcceptContentCondition or() {
        this.ew.orNew();
        return this;
    }

    public AcceptContentCondition and() {
        this.ew.andNew();
        return this;
    }

    private boolean isAndOr() {
        return ew.originalSql() == null || "".equals(ew.originalSql()) ? true : ew.originalSql().endsWith("AND ()") || ew.originalSql().endsWith("OR ()");
    }

    public void clear() {
        this.ew = null;
        this.ew = new PlusEntityWrapper(AcceptContent.class);
    }

    public AcceptContentCondition setSqlSelect(String sqlStr) {
        ew.setSqlSelect(sqlStr);
        return this;
    }

    public AcceptContentCondition orderAsc(String column) {
        ew.orderBy(true, column, true);
        return this;
    }

    public AcceptContentCondition orderDesc(String column) {
        ew.orderBy(true, column, false);
        return this;
    }

    public AcceptContentCondition groupBy(String column) {
        ew.groupBy(column);
        return this;
    }

    public <E, R> AcceptContentCondition orderAsc(Fn<E, R> fn) {
        ew.orderAsc(fn);
        return this;
    }

    public <E, R> AcceptContentCondition orderDesc(Fn<E, R> fn) {
        ew.orderDesc(fn);
        return this;
    }

    public <E, R> AcceptContentCondition groupBy(Fn<E, R> fn) {
        ew.groupBy(fn);
        return this;
    }

    public AcceptContentCondition exists(String sqlStr) {
        ew.exists(sqlStr);
        return this;
    }

    public AcceptContentCondition notExists(String sqlStr) {
        ew.notExists(sqlStr);
        return this;
    }

    public AcceptContentCondition having(String sqlStr, Object... params) {
        ew.having(sqlStr, params);
        return this;
    }

    public AcceptContentCondition andIdIsNull() {
        ew.isNull("id");
        return this;
    }

    public AcceptContentCondition orIdIsNull() {
        if(!isAndOr()){
            ew.or();
        }
        ew.isNull("id");
        return this;
    }

    public AcceptContentCondition andIdIsNotNull() {
        ew.isNotNull("id");
        return this;
    }

    public AcceptContentCondition orIdIsNotNull() {
        if(!isAndOr()){
            ew.or();
        }
        ew.isNotNull("id");
        return this;
    }

    public AcceptContentCondition andIdEq(Object value) {
        ew.eq("id", value);
        return this;
    }

    public AcceptContentCondition orIdEq(Object value) {
        if(!isAndOr()){
            ew.or();
        }
        ew.eq("id", value);
        return this;
    }

    public AcceptContentCondition andIdNe(Object value) {
        ew.ne("id", value);
        return this;
    }

    public AcceptContentCondition orIdNe(Object value) {
        if(!isAndOr()){
            ew.or();
        }
        ew.ne("id", value);
        return this;
    }

    public AcceptContentCondition andIdGt(Object value) {
        ew.gt("id", value);
        return this;
    }

    public AcceptContentCondition orIdGt(Object value) {
        if(!isAndOr()){
            ew.or();
        }
        ew.gt("id", value);
        return this;
    }

    public AcceptContentCondition andIdGe(Object value) {
        ew.ge("id", value);
        return this;
    }

    public AcceptContentCondition orIdGe(Object value) {
        if(!isAndOr()){
            ew.or();
        }
        ew.ge("id", value);
        return this;
    }

    public AcceptContentCondition andIdLt(Object value) {
        ew.lt("id", value);
        return this;
    }

    public AcceptContentCondition orIdLt(Object value) {
        if(!isAndOr()){
            ew.or();
        }
        ew.lt("id", value);
        return this;
    }

    public AcceptContentCondition andIdLe(Object value) {
        ew.le("id", value);
        return this;
    }

    public AcceptContentCondition orIdLe(Object value) {
        if(!isAndOr()){
            ew.or();
        }
        ew.le("id", value);
        return this;
    }

    public AcceptContentCondition andIdIn(Object... value) {
        ew.in("id", value);
        return this;
    }

    public AcceptContentCondition orIdIn(Object... value) {
        if(!isAndOr()){
            ew.or();
        }
        ew.in("id", value);
        return this;
    }

    public AcceptContentCondition andIdNotIn(Object... value) {
        ew.notIn("id", value);
        return this;
    }

    public AcceptContentCondition orIdNotIn(Object... value) {
        if(!isAndOr()){
            ew.or();
        }
        ew.notIn("id", value);
        return this;
    }

    public AcceptContentCondition andIdBetween(Object value, Object value1) {
        ew.between("id", value, value1);
        return this;
    }

    public AcceptContentCondition orIdBetween(Object value, Object value1) {
        if(!isAndOr()){
            ew.or();
        }
        ew.between("id", value, value1);
        return this;
    }

    public AcceptContentCondition andIdNotBetween(Object value, Object value1) {
        ew.notBetween("id", value, value1);
        return this;
    }

    public AcceptContentCondition orIdNotBetween(Object value, Object value1) {
        if(!isAndOr()){
            ew.or();
        }
        ew.notBetween("id", value, value1);
        return this;
    }

    public AcceptContentCondition andIdLike(String value) {
        ew.like("id", value);
        return this;
    }

    public AcceptContentCondition orIdLike(String value) {
        if(!isAndOr()){
            ew.or();
        }
        ew.like("id", value);
        return this;
    }

    public AcceptContentCondition andIdNotLike(String value) {
        ew.notLike("id", value);
        return this;
    }

    public AcceptContentCondition orIdNotLike(String value) {
        if(!isAndOr()){
            ew.or();
        }
        ew.notLike("id", value);
        return this;
    }

    public AcceptContentCondition andAcceptOrderNoIsNull() {
        ew.isNull("accept_order_no");
        return this;
    }

    public AcceptContentCondition orAcceptOrderNoIsNull() {
        if(!isAndOr()){
            ew.or();
        }
        ew.isNull("accept_order_no");
        return this;
    }

    public AcceptContentCondition andAcceptOrderNoIsNotNull() {
        ew.isNotNull("accept_order_no");
        return this;
    }

    public AcceptContentCondition orAcceptOrderNoIsNotNull() {
        if(!isAndOr()){
            ew.or();
        }
        ew.isNotNull("accept_order_no");
        return this;
    }

    public AcceptContentCondition andAcceptOrderNoEq(Object value) {
        ew.eq("accept_order_no", value);
        return this;
    }

    public AcceptContentCondition orAcceptOrderNoEq(Object value) {
        if(!isAndOr()){
            ew.or();
        }
        ew.eq("accept_order_no", value);
        return this;
    }

    public AcceptContentCondition andAcceptOrderNoNe(Object value) {
        ew.ne("accept_order_no", value);
        return this;
    }

    public AcceptContentCondition orAcceptOrderNoNe(Object value) {
        if(!isAndOr()){
            ew.or();
        }
        ew.ne("accept_order_no", value);
        return this;
    }

    public AcceptContentCondition andAcceptOrderNoGt(Object value) {
        ew.gt("accept_order_no", value);
        return this;
    }

    public AcceptContentCondition orAcceptOrderNoGt(Object value) {
        if(!isAndOr()){
            ew.or();
        }
        ew.gt("accept_order_no", value);
        return this;
    }

    public AcceptContentCondition andAcceptOrderNoGe(Object value) {
        ew.ge("accept_order_no", value);
        return this;
    }

    public AcceptContentCondition orAcceptOrderNoGe(Object value) {
        if(!isAndOr()){
            ew.or();
        }
        ew.ge("accept_order_no", value);
        return this;
    }

    public AcceptContentCondition andAcceptOrderNoLt(Object value) {
        ew.lt("accept_order_no", value);
        return this;
    }

    public AcceptContentCondition orAcceptOrderNoLt(Object value) {
        if(!isAndOr()){
            ew.or();
        }
        ew.lt("accept_order_no", value);
        return this;
    }

    public AcceptContentCondition andAcceptOrderNoLe(Object value) {
        ew.le("accept_order_no", value);
        return this;
    }

    public AcceptContentCondition orAcceptOrderNoLe(Object value) {
        if(!isAndOr()){
            ew.or();
        }
        ew.le("accept_order_no", value);
        return this;
    }

    public AcceptContentCondition andAcceptOrderNoIn(Object... value) {
        ew.in("accept_order_no", value);
        return this;
    }

    public AcceptContentCondition orAcceptOrderNoIn(Object... value) {
        if(!isAndOr()){
            ew.or();
        }
        ew.in("accept_order_no", value);
        return this;
    }

    public AcceptContentCondition andAcceptOrderNoNotIn(Object... value) {
        ew.notIn("accept_order_no", value);
        return this;
    }

    public AcceptContentCondition orAcceptOrderNoNotIn(Object... value) {
        if(!isAndOr()){
            ew.or();
        }
        ew.notIn("accept_order_no", value);
        return this;
    }

    public AcceptContentCondition andAcceptOrderNoBetween(Object value, Object value1) {
        ew.between("accept_order_no", value, value1);
        return this;
    }

    public AcceptContentCondition orAcceptOrderNoBetween(Object value, Object value1) {
        if(!isAndOr()){
            ew.or();
        }
        ew.between("accept_order_no", value, value1);
        return this;
    }

    public AcceptContentCondition andAcceptOrderNoNotBetween(Object value, Object value1) {
        ew.notBetween("accept_order_no", value, value1);
        return this;
    }

    public AcceptContentCondition orAcceptOrderNoNotBetween(Object value, Object value1) {
        if(!isAndOr()){
            ew.or();
        }
        ew.notBetween("accept_order_no", value, value1);
        return this;
    }

    public AcceptContentCondition andAcceptOrderNoLike(String value) {
        ew.like("accept_order_no", value);
        return this;
    }

    public AcceptContentCondition orAcceptOrderNoLike(String value) {
        if(!isAndOr()){
            ew.or();
        }
        ew.like("accept_order_no", value);
        return this;
    }

    public AcceptContentCondition andAcceptOrderNoNotLike(String value) {
        ew.notLike("accept_order_no", value);
        return this;
    }

    public AcceptContentCondition orAcceptOrderNoNotLike(String value) {
        if(!isAndOr()){
            ew.or();
        }
        ew.notLike("accept_order_no", value);
        return this;
    }

    public AcceptContentCondition andReqContentIsNull() {
        ew.isNull("req_content");
        return this;
    }

    public AcceptContentCondition orReqContentIsNull() {
        if(!isAndOr()){
            ew.or();
        }
        ew.isNull("req_content");
        return this;
    }

    public AcceptContentCondition andReqContentIsNotNull() {
        ew.isNotNull("req_content");
        return this;
    }

    public AcceptContentCondition orReqContentIsNotNull() {
        if(!isAndOr()){
            ew.or();
        }
        ew.isNotNull("req_content");
        return this;
    }

    public AcceptContentCondition andReqContentEq(Object value) {
        ew.eq("req_content", value);
        return this;
    }

    public AcceptContentCondition orReqContentEq(Object value) {
        if(!isAndOr()){
            ew.or();
        }
        ew.eq("req_content", value);
        return this;
    }

    public AcceptContentCondition andReqContentNe(Object value) {
        ew.ne("req_content", value);
        return this;
    }

    public AcceptContentCondition orReqContentNe(Object value) {
        if(!isAndOr()){
            ew.or();
        }
        ew.ne("req_content", value);
        return this;
    }

    public AcceptContentCondition andReqContentGt(Object value) {
        ew.gt("req_content", value);
        return this;
    }

    public AcceptContentCondition orReqContentGt(Object value) {
        if(!isAndOr()){
            ew.or();
        }
        ew.gt("req_content", value);
        return this;
    }

    public AcceptContentCondition andReqContentGe(Object value) {
        ew.ge("req_content", value);
        return this;
    }

    public AcceptContentCondition orReqContentGe(Object value) {
        if(!isAndOr()){
            ew.or();
        }
        ew.ge("req_content", value);
        return this;
    }

    public AcceptContentCondition andReqContentLt(Object value) {
        ew.lt("req_content", value);
        return this;
    }

    public AcceptContentCondition orReqContentLt(Object value) {
        if(!isAndOr()){
            ew.or();
        }
        ew.lt("req_content", value);
        return this;
    }

    public AcceptContentCondition andReqContentLe(Object value) {
        ew.le("req_content", value);
        return this;
    }

    public AcceptContentCondition orReqContentLe(Object value) {
        if(!isAndOr()){
            ew.or();
        }
        ew.le("req_content", value);
        return this;
    }

    public AcceptContentCondition andReqContentIn(Object... value) {
        ew.in("req_content", value);
        return this;
    }

    public AcceptContentCondition orReqContentIn(Object... value) {
        if(!isAndOr()){
            ew.or();
        }
        ew.in("req_content", value);
        return this;
    }

    public AcceptContentCondition andReqContentNotIn(Object... value) {
        ew.notIn("req_content", value);
        return this;
    }

    public AcceptContentCondition orReqContentNotIn(Object... value) {
        if(!isAndOr()){
            ew.or();
        }
        ew.notIn("req_content", value);
        return this;
    }

    public AcceptContentCondition andReqContentBetween(Object value, Object value1) {
        ew.between("req_content", value, value1);
        return this;
    }

    public AcceptContentCondition orReqContentBetween(Object value, Object value1) {
        if(!isAndOr()){
            ew.or();
        }
        ew.between("req_content", value, value1);
        return this;
    }

    public AcceptContentCondition andReqContentNotBetween(Object value, Object value1) {
        ew.notBetween("req_content", value, value1);
        return this;
    }

    public AcceptContentCondition orReqContentNotBetween(Object value, Object value1) {
        if(!isAndOr()){
            ew.or();
        }
        ew.notBetween("req_content", value, value1);
        return this;
    }

    public AcceptContentCondition andReqContentLike(String value) {
        ew.like("req_content", value);
        return this;
    }

    public AcceptContentCondition orReqContentLike(String value) {
        if(!isAndOr()){
            ew.or();
        }
        ew.like("req_content", value);
        return this;
    }

    public AcceptContentCondition andReqContentNotLike(String value) {
        ew.notLike("req_content", value);
        return this;
    }

    public AcceptContentCondition orReqContentNotLike(String value) {
        if(!isAndOr()){
            ew.or();
        }
        ew.notLike("req_content", value);
        return this;
    }
}